// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** getProductSeriesByProductCode GET /baseStep/getByProductCode */
export async function getProductSeriesByProductCodeUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getProductSeriesByProductCodeUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBasePedigreeDTO_>('/baseStep/getByProductCode', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listProductByProductSeriesCode GET /baseStep/listByProductSeriesCode */
export async function listProductByProductSeriesCodeUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listProductByProductSeriesCodeUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListBasePedigreeDTO_>('/baseStep/listByProductSeriesCode', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listProduct GET /baseStep/product */
export async function listProductUsingGET(options?: { [key: string]: any }) {
  return request<API.BaseResponseListBasePedigreeDTO_>('/baseStep/product', {
    method: 'GET',
    ...(options || {}),
  });
}

/** listProductSeries GET /baseStep/productSeries */
export async function listProductSeriesUsingGET(options?: { [key: string]: any }) {
  return request<API.BaseResponseListBasePedigreeDTO_>('/baseStep/productSeries', {
    method: 'GET',
    ...(options || {}),
  });
}
